package com._reflect;

import java.lang.reflect.Field;
import java.util.Arrays;

/**
 * @Author: huangya
 * @Date: 2019/11/10
 * @Description:
 *
 * setAccessible是启用和禁用访问安全检查的开关
 */
public class _AccessibleObjectDemo {

    public static void main(String[] args) {
        AAA aaa = new AAA();
        Field[] fields = aaa.getClass().getDeclaredFields();
        Arrays.stream(fields).forEach(e-> System.out.println(e.isAccessible()));
        System.out.println(1);
    }
}
